package com.gyl.utils;

import java.lang.reflect.ParameterizedType;

public class GenericSuperClass {
	
	public static Class getSuperClass(Class tClass) {
		ParameterizedType pt = (ParameterizedType) tClass.getGenericSuperclass() ;
		Class entity = (Class) pt.getActualTypeArguments()[0] ;
		return entity ;
	}

}
